package com.example.sb;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author junji
 */
@SpringBootApplication
@MapperScan("com.example.sb.dao")
public class SbApplication implements CommandLineRunner {
    private static Logger logger = LoggerFactory.getLogger(SbApplication.class);
    public static void main(String[] args) {
        SpringApplication.run(SbApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        logger.info("开始启动项目，执行run");
        for (int i = 0; i < args.length; ++i) {
            logger.info("args[{}]: {}", i, args[i]);
        }
    }
}
